<?php
include("../inc/Function.php");
if($_SESSION['a']['alevel']!=5 && $power['cwjl']!=1){
	echo "<script>alert('权限不足');window.location.href='index.php';</script>";exit;
}

$psize = 15;
$page = isset($_GET['page'])?$_GET['page']:1;
$uname = isset($_GET['uname'])?$_GET['uname']:"";
$etime = isset($_GET['etime'])?$_GET['etime']:"";
$stime = isset($_GET['stime'])?$_GET['stime']:"";
$list = record_ye_list($page,$psize,$uname,$stime,$etime);
$num = record_ye_list_num($uname,$stime,$etime);

if($list){
    $msg = 1;
}else{
    $msg = 0;
}
$page1 = page1($num,$psize,$page,$_SERVER['PHP_SELF']."?uname=$uname&stime=$stime&etime=$etime");
$tpl->assign("page",$page1);
$tpl->assign("uname",$uname);
$tpl->assign("stime",$stime);
$tpl->assign("etime",$etime);
$tpl->assign("xfarr",$xfarr);
$tpl->assign("payarr",$payarr);
$tpl->assign("msg",$msg);
$tpl->assign("rlist",$list);
$tpl->show('record_ye_list');
?>